﻿<Application 
    x:Class="WakeApp.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

    <!--Application Resources-->
    <Application.Resources>
        <Style TargetType="ListBox" x:Key="MyStyle1">
            <Setter Property="Height" Value="484" />
            <Setter Property="Width" Value="456" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="FontFamily" Value="Segoe WP Light" />
        </Style>
        <Style TargetType="Canvas" x:Key="CanvasMain">
            <Setter Property="Height" Value="150"/>
            <Setter Property="Width" Value="456" />
            <Setter Property="Background" Value="Transparent"/>
        </Style>

        <Style TargetType="TextBlock" x:Key="OraMain">
            <Setter Property="Canvas.Top" Value="6" />
            <Setter Property="Canvas.Left" Value="6" />
            <Setter Property="Foreground" Value="white" />
            <Setter Property="FontSize" Value="60"/>
        </Style>
        
        <!--Stili scritta giorni-->
        <Style TargetType="TextBlock" x:Key="GiorniMain">
            <Setter Property="Canvas.Top" Value="135"/>
            <Setter Property="Width" Value="35" />
            <Setter Property="TextAlignment" Value="Center"/>
        </Style>
        <!--fine Giorni-->
        
        <!--bottoni giorni-->
        <Style TargetType="Image" x:Key="ImageMainON">
            <Setter Property="Canvas.Top" Value="95"/>
            <Setter Property="Source" Value="images/toggleon.png"/>
        </Style>
        <Style TargetType="Image" x:Key="ImageMainOFF">
            <Setter Property="Canvas.Top" Value="95"/>
            <Setter Property="Source" Value="images/toggleoff.png"/>
        </Style>
        <!--fine bottoni giorni-->
        
        <Style TargetType="toolkit:ToggleSwitch" x:Key="ToggleSwichMain">
            <Setter Property="Width" Value="137"/>
            <Setter Property="Canvas.Left" Value="325"/>
           
        </Style>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>